import request from '@/utils/request'

export function fetchUserInfo(id: number) {
  return request.get(`/api/users/${id}`)
}

export function login(data: { username: string; password: string }) {
  return request.post('/api/login', data)
}